package com.yidu.ladder.system.dao;

import java.util.List;
import java.util.Map;

import com.yidu.ladder.system.domain.Customer;
import com.yidu.ladder.system.domain.CustomerVo;
/**
 * 客户数据接口
 * @author Xiaofei
 *
 */
public interface CustomerDao {

	public List<Customer> selectAll();
	/**
	 * 添加客户
	 * @param customer
	 * @return
	 */
	public int addCustomer (Customer customer);
	/**
	 * 修改客户
	 * @param customer
	 * @return
	 */
	public int updateCustomer(Customer customer);
	
	/**
	 * 根据条件进行分页查询
	 * @param paramCustomerVo
	 * @return
	 */
	public int countCustomerByCriteria(CustomerVo paramCustomerVo);
	/**
	 * 根据条件查询数量
	 * @param paramCustomerVo
	 * @return
	 */
	public List<Customer> queryCustomerByCriteriaWithPage(CustomerVo paramCustomerVo);
	/**
	 * 冻结或者还原
	 * @param paramMap
	 * @return
	 */
	public int freezeOrRecoverCustomer(Map<String,Object> paramMap);
	
}
